import request from "@/utils/request";
export const login = (data) => {
  return request({
    method: 'POST',
    url: 'login',
    data
  })
}
export const roles = (data) => {
  return request({
    method: 'POST',
    url: 'roles',
    data
  })
}

export const bianId = (id,data) => {
  return request({
    method: `put`,
    url: `roles/${id}`,
    data
  })
}

export const getsssss = () => {
  return request({
    method: 'GET',
    url: `/categories?type=${3}&pagenum=${1}&pagesize=${2}`,
  })
}

